import Layout from '@/layout'

const deviceRouter = {
  path: '/device',
  component: Layout,
  name: 'Device',
  meta: {
    roles: ['admin'],
    title: '设备',
    icon: 'example'
  },
  children: [
    {
      path: '/device/index',
      component: () => import('@/views/device/index'),
      meta: { title: '设备管理', icon: 'table' }
    },
    {
      path: '/device/infrared',
      component: () => import('@/views/device/infrared/index'),
      meta: { title: '红外', icon: 'table' },
      hidden: true
    },
    {
      path: '/device/infrared/add',
      component: () => import('@/views/device/infrared/add'),
      meta: { title: '红外-添加', icon: 'table' },
      hidden: true
    },
    {
      path: '/device/infrared/set',
      component: () => import('@/views/device/infrared/set'),
      meta: { title: '红外-设置', icon: 'table' },
      hidden: true
    },
    {
      path: '/device/infrared/update',
      component: () => import('@/views/device/infrared/update'),
      meta: { title: '红外-升级', icon: 'table' },
      hidden: true
    },
    {
      path: '/device/infrared/log',
      component: () => import('@/views/device/infrared/log'),
      meta: { title: '红外-日志', icon: 'table' },
      hidden: true
    },
    {
      path: '/device/door',
      component: () => import('@/views/device/door/index'),
      meta: { title: '门禁', icon: 'table' },
      hidden: true
    },
    {
      path: '/device/door/add',
      component: () => import('@/views/device/door/add'),
      meta: { title: '门禁-添加', icon: 'table' },
      hidden: true
    },
    {
      path: '/device/door/set',
      component: () => import('@/views/device/door/set'),
      meta: { title: '门禁-设置', icon: 'table' },
      hidden: true
    },
    {
      path: '/device/door/update',
      component: () => import('@/views/device/door/update'),
      meta: { title: '门禁-升级', icon: 'table' },
      hidden: true
    },
    {
      path: '/device/door/log',
      component: () => import('@/views/device/door/log'),
      meta: { title: '门禁-日志', icon: 'table' },
      hidden: true
    },
    {
      path: '/device/axis',
      component: () => import('@/views/device/axis/index'),
      meta: { title: '轨道', icon: 'table' },
      hidden: true
    },
    {
      path: '/device/axis/set',
      component: () => import('@/views/device/axis/set'),
      meta: { title: '轨道-设置', icon: 'table' },
      hidden: true
    },
    {
      path: '/device/axis/add',
      component: () => import('@/views/device/axis/add'),
      meta: { title: '轨道-添加', icon: 'table' },
      hidden: true
    },
    {
      path: '/device/axis/update',
      component: () => import('@/views/device/axis/update'),
      meta: { title: '轨道-升级', icon: 'table' },
      hidden: true
    },
    {
      path: '/device/circle',
      component: () => import('@/views/device/circle/index'),
      meta: { title: '圆盘', icon: 'table' },
      hidden: true
    },
    {
      path: '/device/circle/set',
      component: () => import('@/views/device/circle/set'),
      meta: { title: '圆盘-设置', icon: 'table' },
      hidden: true
    },
    {
      path: '/device/circle/add',
      component: () => import('@/views/device/circle/add'),
      meta: { title: '圆盘-添加', icon: 'table' },
      hidden: true
    },
    {
      path: '/device/switch',
      component: () => import('@/views/device/switch/index'),
      meta: { title: '源控开关', icon: 'table' },
      hidden: true
    },
    {
      path: '/device/switch/update',
      component: () => import('@/views/device/switch/update'),
      meta: { title: '源控开关-升级', icon: 'table' },
      hidden: true
    },
    {
      path: '/device/switch/add',
      component: () => import('@/views/device/switch/add'),
      meta: { title: '源控开关-添加', icon: 'table' },
      hidden: true
    },
    {
      path: '/device/switch/set',
      component: () => import('@/views/device/switch/set'),
      meta: { title: '源控开关-设置', icon: 'table' },
      hidden: true
    },
    {
      path: '/device/switch/log',
      component: () => import('@/views/device/switch/log'),
      meta: { title: '源控开关-日志', icon: 'table' },
      hidden: true
    },
    {
      path: '/device/control/add',
      component: () => import('@/views/device/control/add'),
      meta: { title: '控制设备-添加', icon: 'table' },
      hidden: true
    },
    {
      path: '/device/control/set',
      component: () => import('@/views/device/control/set'),
      meta: { title: '控制设备-设置', icon: 'table' },
      hidden: true
    },
    {
      path: '/device/control/update',
      component: () => import('@/views/device/control/update'),
      meta: { title: '控制设备-升级', icon: 'table' },
      hidden: true
    },
    {
      path: '/device/radio/add',
      component: () => import('@/views/device/radio/add'),
      meta: { title: '辐照器-添加', icon: 'table' },
      hidden: true
    },
    {
      path: '/device/radio/set',
      component: () => import('@/views/device/radio/set'),
      meta: { title: '辐照器-设置', icon: 'table' },
      hidden: true
    },
    {
      path: '/device/radio/update',
      component: () => import('@/views/device/radio/update'),
      meta: { title: '辐照器-升级', icon: 'table' },
      hidden: true
    },
    {
      path: '/device/count_x/add',
      component: () => import('@/views/device/count_x/add'),
      meta: { title: 'x空气比释动能率-添加', icon: 'table' },
      hidden: true
    },
    {
      path: '/device/count_x/set',
      component: () => import('@/views/device/count_x/set'),
      meta: { title: 'x空气比释动能率-修改', icon: 'table' },
      hidden: true
    },
    {
      path: '/device/count_gamma/add',
      component: () => import('@/views/device/count_gamma/add'),
      meta: { title: 'γ空气比释动能率-添加', icon: 'table' },
      hidden: true
    },
    {
      path: '/device/count_gamma/set',
      component: () => import('@/views/device/count_gamma/set'),
      meta: { title: 'γ空气比释动能率-修改', icon: 'table' },
      hidden: true
    }
  ]
}

export default deviceRouter
